home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / mint / mint104s.zoo / mint.src / asmtab.c < prev    next >
C/C++ Source or Header  |  1993-03-08  |  32KB  |  1,180 lines

  1.  
  2. /*  A Bison parser, made from asm.y  */
  3.  
  4. #define YYBISON 1  /* Identify Bison output.  */
  5.  
  6. #define    WORD    258
  7. #define    WHITESP    259
  8. #define    EOLN    260
  9. #define    STRING    261
  10. #define    DEFINECMD    262
  11. #define    INCLUDECMD    263
  12. #define    IFDEFCMD    264
  13. #define    IFNDEFCMD    265
  14. #define    ELSECMD    266
  15. #define    ENDIFCMD    267
  16.  
  17. #line 3 "asm.y"
  18.  
  19. #define YYSTYPE char *
  20.  
  21. #include "asmtrans.h"
  22.  
  23. #ifndef YYLTYPE
  24. typedef
  25.   struct yyltype
  26.     {
  27.       int timestamp;
  28.       int first_line;
  29.       int first_column;
  30.       int last_line;
  31.       int last_column;
  32.       char *text;
  33.    }
  34.   yyltype;
  35.  
  36. #define YYLTYPE yyltype
  37. #endif
  38.  
  39. #ifndef YYSTYPE
  40. #define YYSTYPE int
  41. #endif
  42. #include <stdio.h>
  43.  
  44. #ifndef __STDC__
  45. #define const
  46. #endif
  47.  
  48.  
  49.  
  50. #define    YYFINAL        87
  51. #define    YYFLAG        -32768
  52. #define    YYNTBASE    25
  53.  
  54. #define YYTRANSLATE(x) ((unsigned)(x) <= 267 ? yytranslate[x] : 35)
  55.  
  56. static const char yytranslate[] = {     0,
  57.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  58.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  59.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  60.      2,     2,     2,     2,    15,    22,     2,     2,     2,    16,
  61.     17,    23,    18,    13,    19,     2,    24,     2,     2,     2,
  62.      2,     2,     2,     2,     2,     2,     2,    14,     2,     2,
  63.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  64.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  65.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  66.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  67.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  68.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  69.      2,     2,    20,     2,    21,     2,     2,     2,     2,     2,
  70.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  71.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  72.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  73.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  74.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  75.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  76.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  77.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  78.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  79.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  80.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  81.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  82.      2,     2,     2,     2,     2,     1,     2,     3,     4,     5,
  83.      6,     7,     8,     9,    10,    11,    12
  84. };
  85.  
  86. #if YYDEBUG != 0
  87. static const short yyprhs[] = {     0,
  88.      0,     1,     4,     6,     9,    12,    16,    21,    26,    33,
  89.     40,    45,    50,    53,    56,    59,    64,    68,    74,    76,
  90.     80,    82,    85,    87,    90,    94,    99,   104,   109,   114,
  91.    121,   128,   130,   134,   137,   139,   142,   144,   146,   148
  92. };
  93.  
  94. #endif
  95.  
  96. static const short yyrhs[] = {    -1,
  97.     25,    26,     0,     5,     0,    30,     5,     0,    27,     5,
  98.      0,    30,    27,     5,     0,     8,     4,     6,     5,     0,
  99.      8,     4,     3,     5,     0,     7,     4,     3,     4,     6,
  100.      5,     0,     7,     4,     3,     4,    31,     5,     0,     9,
  101.      4,     3,     5,     0,    10,     4,     3,     5,     0,    11,
  102.      5,     0,    12,     5,     0,     4,    29,     0,     4,    29,
  103.      4,    28,     0,     3,     4,    29,     0,     3,     4,    29,
  104.      4,    28,     0,    31,     0,    31,    13,    28,     0,     3,
  105.      0,     3,    14,     0,    32,     0,    15,    32,     0,    16,
  106.     32,    17,     0,    16,    32,    17,    18,     0,    19,    16,
  107.     32,    17,     0,    32,    16,    32,    17,     0,    16,    32,
  108.     17,     3,     0,    32,    16,    32,    13,    32,    17,     0,
  109.     32,    20,    32,    14,    32,    21,     0,    33,     0,    33,
  110.     34,    32,     0,    19,    32,     0,     3,     0,    22,     3,
  111.      0,    18,     0,    19,     0,    23,     0,    24,     0
  112. };
  113.  
  114. #if YYDEBUG != 0
  115. static const short yyrline[] = { 0,
  116.     22,    23,    26,    29,    30,    31,    33,    34,    35,    37,
  117.     39,    40,    41,    42,    45,    46,    49,    50,    55,    56,
  118.     60,    63,    65,    66,    67,    68,    69,    70,    71,    72,
  119.     74,    78,    79,    80,    82,    83,    86,    87,    88,    89
  120. };
  121.  
  122. static const char * const yytname[] = {   "$","error","$illegal.","WORD","WHITESP",
  123. "EOLN","STRING","DEFINECMD","INCLUDECMD","IFDEFCMD","IFNDEFCMD","ELSECMD","ENDIFCMD",
  124. "','","':'","'#'","'('","')'","'+'","'-'","'{'","'}'","'$'","'*'","'/'","input",
  125. "line","opline","ops","opcode","label","operand","basic","basexpr","op",""
  126. };
  127. #endif
  128.  
  129. static const short yyr1[] = {     0,
  130.     25,    25,    26,    26,    26,    26,    26,    26,    26,    26,
  131.     26,    26,    26,    26,    27,    27,    27,    27,    28,    28,
  132.     29,    30,    31,    31,    31,    31,    31,    31,    31,    31,
  133.     31,    32,    32,    32,    33,    33,    34,    34,    34,    34
  134. };
  135.  
  136. static const short yyr2[] = {     0,
  137.      0,     2,     1,     2,     2,     3,     4,     4,     6,     6,
  138.      4,     4,     2,     2,     2,     4,     3,     5,     1,     3,
  139.      1,     2,     1,     2,     3,     4,     4,     4,     4,     6,
  140.      6,     1,     3,     2,     1,     2,     1,     1,     1,     1
  141. };
  142.  
  143. static const short yydefact[] = {     1,
  144.      0,     0,     0,     3,     0,     0,     0,     0,     0,     0,
  145.      2,     0,     0,     0,    22,    21,    15,     0,     0,     0,
  146.      0,    13,    14,     5,     0,     4,     0,    17,     0,     0,
  147.      0,     0,     0,     0,     6,     0,    35,     0,     0,     0,
  148.      0,    16,    19,    23,    32,     0,     8,     7,    11,    12,
  149.     18,     0,    24,     0,     0,    34,    36,     0,     0,     0,
  150.     37,    38,    39,    40,     0,     0,     0,    25,     0,    20,
  151.      0,     0,    33,     9,    10,    29,    26,    27,     0,    28,
  152.      0,     0,     0,    30,    31,     0,     0
  153. };
  154.  
  155. static const short yydefgoto[] = {     1,
  156.     11,    12,    42,    17,    13,    43,    44,    45,    65
  157. };
  158.  
  159. static const short yypact[] = {-32768,
  160.     47,     1,     3,-32768,    44,    49,    56,    57,    58,    59,
  161. -32768,    60,     8,     3,-32768,-32768,    62,    64,    30,    65,
  162.     66,-32768,-32768,-32768,    67,-32768,    68,    70,    13,    71,
  163.     72,    73,    74,    75,-32768,    13,-32768,    27,    27,    15,
  164.     69,-32768,    63,   -12,    21,     4,-32768,-32768,-32768,-32768,
  165. -32768,    27,-32768,    45,    27,-32768,-32768,    13,    27,    27,
  166. -32768,-32768,-32768,-32768,    27,    76,    77,     6,    53,-32768,
  167.     25,    78,-32768,-32768,-32768,-32768,-32768,-32768,    27,-32768,
  168.     27,    79,    80,-32768,-32768,    83,-32768
  169. };
  170.  
  171. static const short yypgoto[] = {-32768,
  172. -32768,    81,   -33,    84,-32768,    38,   -38,-32768,-32768
  173. };
  174.  
  175.  
  176. #define    YYLAST        101
  177.  
  178.  
  179. static const short yytable[] = {    53,
  180.     54,    56,    51,    59,    14,    16,    37,    60,    76,    66,
  181.     25,     3,    26,    56,    15,    37,    69,    37,    38,    39,
  182.     71,    72,    40,    77,    70,    41,    73,    38,    39,    37,
  183.     55,    40,    31,    52,    41,    32,    41,    79,    61,    62,
  184.     82,    80,    83,    63,    64,    52,    86,    18,    41,     2,
  185.      3,     4,    19,     5,     6,     7,     8,     9,    10,    20,
  186.     21,    68,    22,    23,    24,    29,    30,    33,    34,    78,
  187.     14,    57,    35,    36,    46,    58,    47,    48,    49,    50,
  188.     74,    75,    87,    67,     0,     0,     0,     0,     0,     0,
  189.      0,    81,     0,    27,     0,    84,     0,    28,     0,     0,
  190.     85
  191. };
  192.  
  193. static const short yycheck[] = {    38,
  194.     39,    40,    36,    16,     4,     3,     3,    20,     3,     6,
  195.      3,     4,     5,    52